//商店接口设置
import React from "react";
import "./css/store-inter.css";
import "./css/StoreInfo.css";
import "./css/storeShowSet.css";
import { Form, Input, Button } from "antd";
import HOCStoreInter from "../../component/set/HOC/HOCStoreInter.js";

const layout = {
  labelCol: { span: 6 },
  wrapperCol: { span: 10 },
};

@HOCStoreInter
class StoreInter extends React.Component {
  render() {
    let { submit } = this.props;
    return (
      <div className="store_inter store_show_set storeInfo">
        <div className="singleForms">
          <Form {...layout} name="infoOne" ref="formOne">
            <Form.Item
              label="快递接口KEY"
              name="sisEikey"
              rules={[{ required: true, message: "请输入快递接口KEY" }]}
            >
              <Input className="info-border"></Input>
            </Form.Item>
            <Form.Item
              label="短信接口KEY"
              name="sisSmsikey"
              rules={[{ required: true, message: "请输入短信接口KEY" }]}
            >
              <Input className="info-border"></Input>
            </Form.Item>
            <Form.Item
              label="短信模板COD"
              name="sisSmstcod"
              rules={[{ required: true, message: "请输入短信模板COD" }]}
            >
              <Input className="info-border"></Input>
            </Form.Item>
            <Form.Item
              label="短信签名"
              name="sisSmss"
              rules={[{ required: true, message: "请填写短信签名" }]}
            >
              <Input className="info-border"></Input>
            </Form.Item>
            <Form.Item
              label="AppId"
              name="sisAppid"
              rules={[{ required: true, message: "请填写AppId" }]}
            >
              <Input className="info-border" placeholder="小程序ID"></Input>
            </Form.Item>
            <Form.Item
              label="AppSecret"
              name="sisAppsecret"
              rules={[{ required: true, message: "请填写AppSecret" }]}
            >
              <Input className="info-border" placeholder="小程序密钥"></Input>
            </Form.Item>
          </Form>
          <div className="btn">
            <Button onClick={submit}>确定</Button>
          </div>
        </div>
      </div>
    );
  }
}

export default StoreInter;
